package com.mdhw.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mdhw.admin.entity.AdminRole;
import com.mdhw.admin.vo.AdminRoleVo;
import com.mdhw.common.base.PageData;
import com.mdhw.config.R;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【admin_role】的数据库操作Service
* @createDate 2024-12-04 13:45:58
*/
public interface AdminRoleService extends IService<AdminRole> {

    public R<PageData<AdminRoleVo>> selectRoleVoPage(Long pageNo, Long pageSize, String name, String code);

    public R<String> addRole(AdminRole adminRole);

    public R<String> updateRole(AdminRole adminRole);

    public R<String> deleteRole(Long id);

    public R<String> setRoleMenu(AdminRoleVo adminRoleVo);

    R<Map<String, Object>> selectMenuTreeByRoleId(Long id);

    public R<List<AdminRole>> selectRoleList();
}
